package sk.tuke.constraintbuilder.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;

public class Annotations implements INodeElement {
	
	private List<ILeaf> elements = new ArrayList<>();;

	@XmlElement(name = "annotation", type = Annotation.class)
	public List<ILeaf> getElements() {
		return elements;
	}
	
	public void setElements(List<ILeaf> elements) {
		this.elements=elements;
	}
	
	public void addElement(ILeaf element){
		elements.add(element);
	}

}
